package com.linkhub.oms.admin.common.enums;

import com.linkhub.oms.common.enums.IEnumConvert;
import com.linkhub.oms.common.enums.mp.CustomerBusinessStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: TabTypeCustomerBizStatusMappingEnum
 * @Author: echo
 * @Date: 2024/4/29 17:08
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum TabTypeCustomerBizStatusMappingEnum implements IEnumConvert<Integer> {

    TO_BE_MATCHED(1, CustomerBusinessStatusEnum.TO_BE_MATCHED),
    DUE(2, CustomerBusinessStatusEnum.DUE),
    PENDING_CHECK(3, CustomerBusinessStatusEnum.PENDING_CHECK),
    PENDING_PROCESSED(4, CustomerBusinessStatusEnum.PENDING_PROCESSED),
    VOID(5, CustomerBusinessStatusEnum.VOID),
    NON_SHIPO_ORDERS(6, CustomerBusinessStatusEnum.NON_SHIPO_ORDERS),
//    CANCELLED(7, CustomerBusinessStatusEnum.CANCELLED),
    IN_STOCK(21, CustomerBusinessStatusEnum.IN_PERFORMANCE),
    OUT_OF_STOCK(22, CustomerBusinessStatusEnum.IN_PERFORMANCE),
    ABNORMAL(30, CustomerBusinessStatusEnum.ABNORMAL),
    // 待发货状态为虚拟状态，实际在数据库中记录为履约中-有货、履约中-缺货，为以上两个状态的合集,此值不会记录在数据库中
    WAIT_DELIVER(35, CustomerBusinessStatusEnum.IN_PERFORMANCE),
    TRACKING(40, CustomerBusinessStatusEnum.TRACKING),
    ON_HOLD(45, CustomerBusinessStatusEnum.ON_HOLD),
    ;

    private final Integer code;
    private final CustomerBusinessStatusEnum customerBusinessStatus;


}
